<style type="text/css">


    .table-responsive .table>tbody>tr>td {
        text-align: center;
        vertical-align: middle;
        color: #676767;
    }


    .table-bordered {
        border: 1px solid #e8edf0;
    }

    .table-bordered>thead>tr>th,
    .table-bordered>tbody>tr>th,
    .table-bordered>tfoot>tr>th,
    .table-bordered>thead>tr>td,
    .table-bordered>tbody>tr>td,
    .table-bordered>tfoot>tr>td {
        border: 1px solid #e8edf0;
    }

    .table thead tr {
        background: #f8f9fb;
    }

    .order_price span {
        width: 70px;
        display: inline-block;
        text-align: right;
    }
</style>

<div class="row">
    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">基础信息</div>
            <div class="panel-body">
                <table class="table table-striped">
                    <tbody>

                    <tr>
                        <td>房屋标题</td>
                        <td>{$row.house_title}</td>
                    </tr>
                    <tr>
                        <td>详细地址</td>
                        <td>{$row.address}</td>
                    </tr>
                    <tr>
                        <td>区域</td>
                        <td>{$row.province}{$row.city}</td>
                    </tr>
                    <tr>
                        <td>门牌号</td>
                        <td>{$row.house_number}</td>
                    </tr>
                    <tr>
                        <td>建筑面积</td>
                        <td>{$row.area}m²</td>
                    </tr>
                    <tr>
                        <td>所属社区</td>
                        <td>{$row.community}</td>
                    </tr>

                    <tr>
                        <td>房屋属性</td>
                        {if $row.house_attr==0}
                        <td>私人住宅</td>
                        {/if}
                        {if $row.house_attr==1}
                        <td>营运民宿</td>
                        {/if}
                        {if $row.house_attr==2}
                        <td>酒店客房</td>
                        {/if}
                    </tr>

                    <tr>
                        <td>卧室数量</td>
                        <td>{$row.bedroom_num}</td>
                    </tr>
                    <tr>
                        <td>客厅数量</td>
                        <td>{$row.livingroom_num}</td>
                    </tr>

                    <tr>
                        <td>厨房数量</td>
                        <td>{$row.kitchen_num}</td>
                    </tr>

                    <tr>
                        <td>卫生间数量</td>
                        <td>{$row.bathroom_num}</td>
                    </tr>

                    <tr>
                        <td>房屋户型</td>
                        <td>
                        {foreach $house_type_list as $index=>$vo}
                            <div>
                                <div> {$vo.title}</div>
                                {foreach $vo.data as $k=>$v}
                                <div style="padding-left: 20px;">{$v.name}</div>
                                {/foreach}
                            </div>

                        {/foreach}
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">房屋等级-房产认证</div>
            <div class="panel-body">
                <table class="table table-striped">
                    <tbody>
                    <tr>
                        <td>房产证</td>
                        <td>
                            {if $row.house_property_cert_img}
                            <a href="javascript:">
                                {foreach $row.house_property_cert_img as $index=>$vo}
                                <img class="img-sm img-center" data-tips-image src="{$vo|cdnurl|htmlentities}"></a>
                                {/foreach}
                            </a>
                            {/if}
                        </td>
                    </tr>
                    <tr>
                        <td>购房合同有效期</td>
                        <td>{$row.purchase_contract_time}</td>
                        <td>购房合同图片</td>
                        <td>
                            {if $row.purchase_contract_img}
                            <a href="javascript:">
                                {foreach $row.purchase_contract_img as $index=>$vo}
                                <img class="img-sm img-center" data-tips-image src="{$vo|cdnurl|htmlentities}"></a>
                                {/foreach}
                            </a>
                            {/if}
                        </td>
                    </tr>
                    <tr>
                        <td>评估报告</td>
                        <td>
                            {if $row.evaluation_report_img}
                            <a href="javascript:">
                                {foreach $row.evaluation_report_img as $index=>$vo}
                                <img class="img-sm img-center" data-tips-image src="{$vo|cdnurl|htmlentities}"></a>
                            {/foreach}
                            </a>
                            {/if}
                        </td>
                    </tr>
                    <tr>
                        <td>装修合同有效期</td>
                        <td>{$row.renovation_contract_time}</td>
                        <td>装修合同</td>
                        <td>
                            {if $row.renovation_contract_img}
                            <a href="javascript:">
                                {foreach $row.renovation_contract_img as $index=>$vo}
                                <img class="img-sm img-center" data-tips-image src="{$vo|cdnurl|htmlentities}"></a>
                            {/foreach}
                            </a>
                            {/if}
                        </td>
                    </tr>
                    <tr>
                        <td>保险合同有效期</td>
                        <td>{$row.insurance_contract_time}</td>
                        <td>装修合同</td>
                        <td>
                            {if $row.insurance_contract_img}
                            <a href="javascript:">
                                {foreach $row.insurance_contract_img as $index=>$vo}
                                <img class="img-sm img-center" data-tips-image src="{$vo|cdnurl|htmlentities}"></a>
                            {/foreach}
                            </a>
                            {/if}
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">房屋等级-等级核定</div>
            <div class="panel-body">
                <table class="table table-striped">
                    <tbody>
                    <tr>
                        <td>房屋建面单价</td>
                        <td>{$row.unit_price}单价/万m²</td>
                    </tr>
                    <tr>
                        <td>全屋总建面积</td>
                        <td>{$row.total_area}m²</td>
                    </tr>
                    <tr>
                        <td>全屋房产总价</td>
                        <td>{$row.total_price}万元</td>
                    </tr>
                    <tr>
                        <td>全屋装修费用</td>
                        <td>{$row.decorate_price}万元</td>
                    </tr>
                    <tr>
                        <td>园区/社区房屋均价</td>
                        <td>{$row.average_price}单价/万m²</td>
                    </tr>
                    <tr>
                        <td>是否有购买房屋财产意外险</td>
                        <td>{$row.is_insurance==1?"是":"否"}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">床铺信息</div>
            <div class="panel-body">
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th class="text-center">
                            <div class="th-inner">卧室名</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">床铺类型</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">床铺数量</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">宜住人数</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">限住人数</div>
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="bed_list" id="vo"}
                    <tr>
                        <td class="text-center">{$vo.bed_name}</td>
                        <td class="text-center">{$vo.bed_type}</td>
                        <td class="text-center">{$vo.bed_num}</td>
                        <td class="text-center">{$vo.live_people_num}</td>
                        <td class="text-center">{$vo.limit_people_num}</td>
                    </tr>
                    {/volist}
                    </tbody>

                </table>

            </div>
        </div>
    </div>

    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">共享模式</div>
            <div class="panel-body">
                <table class="table table-striped">
                    <tbody>
                    {volist name="mode_arr" id="vo"}
                    <tr>
                        {if $vo==0}
                        <td>整房共享</td>
                        {/if}
                        {if $vo==1}
                        <td>整房自住 (自住日期 {$row.live_start_date}-{$row.live_end_date})</td>
                        {/if}
                        {if $vo==2}
                        <td>拼房共享</td>
                        {/if}
                        {if $vo==3}
                        <td>免费换房</td>
                        {/if}
                        {if $vo==4}
                        <td>自住拼房 (自住卧室 {$bed_index})</td>
                        {/if}
                    </tr>
                    {/volist}
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">房屋设施</div>
            <div class="panel-body">
                <table class="table table-striped">
                    <tbody>
                    {foreach $facilities_list as $index=>$vo}
                    <tr>
                        <td>{$vo.title}</td>
                        <td>
                            <div>
                                {foreach $vo.data as $k=>$v}
                                <div style="padding-left: 20px;">{$v.name}</div>
                                {/foreach}
                            </div>
                        </td>
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">房屋照片</div>
            <div class="panel-body">
                <table class="table table-striped">
                    <tbody>
                    {foreach $media_list as $index=>$vo}
                    <tr>
                        <td>{$vo.title}</td>
                        <td>
                            <div>
                                {foreach $vo.data as $k=>$v}
                                <a href="javascript:">
                                    <img class="img-sm img-center" data-tips-image src="{$v.media|cdnurl|htmlentities}"></a>
                                </a>
                                {/foreach}
                            </div>
                        </td>
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">入住规则</div>
            <div class="panel-body">
                <table class="table table-striped">
                    <tbody>
                    <tr>
                        <td>最少入住天数</td>
                        <td>{$row.min_live_day}</td>
                    </tr>
                    <tr>
                        <td>最多入驻天数</td>
                        <td>{$row.max_live_day}</td>
                    </tr>

                    <tr>
                        <td>入驻时间</td>
                        <td>{$row.live_time}</td>
                    </tr>
                    <tr>
                        <td>退房时间</td>
                        <td>{$row.leave_time}</td>
                    </tr>

                    <tr>
                        <td>被单更换</td>
                        <td>{$row.sheet_change}</td>
                    </tr>
                    <tr>
                        <td>卫生打扫</td>
                        <td>{$row.clean}</td>
                    </tr>

                    <tr>
                        <td>接待时间</td>
                        <td>
                            {foreach $row.receive_time as $index=>$vo}
                                {$vo.start_time}-{$vo.end_time}
                            {/foreach}
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">价格规则-房屋共享</div>
            <div class="panel-body">
                <table class="table table-striped">
                    <tbody>
                    <tr>
                        <td>平日价格</td>
                        <td>{$row.share_weekday_price}</td>
                    </tr>
                    <tr>
                        <td>周末价格</td>
                        <td>{$row.share_weekend_price}</td>
                    </tr>

                    <tr>
                        <td>节假日价格</td>
                        <td>{$row.share_highday_price}</td>
                    </tr>

                    <tr>
                        <td>连住优惠</td>
                        <td>
                            {foreach $row.stay_discount as $index=>$vo}
                            {$vo.min_day}-{$vo.max_day}天 折扣{$vo.discount}
                            {/foreach}
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">价格规则-承接拼房</div>
            <div class="panel-body">
                <table class="table table-striped">
                    <tbody>
                    <tr>
                        <td>平日拼房价格</td>
                        <td>
                            {foreach $row.group_weekday_price as $index=>$vo}
                            {if $vo.type == 'all'}
                                整房价格: ¥{$vo.price}
                            {else/}
                                卧室{$vo.type}价格: ¥{$vo.price}
                            {/if}
                            {/foreach}
                        </td>
                    </tr>
                    <tr>
                        <td>周末拼房价格</td>
                        <td>
                            {foreach $row.group_weekend_price as $index=>$vo}
                            {if $vo.type == 'all'}
                            整房价格: ¥{$vo.price}
                            {else/}
                            卧室{$vo.type}价格: ¥{$vo.price}
                            {/if}
                            {/foreach}
                        </td>
                    </tr>

                    <tr>
                        <td>节假日拼房价格</td>
                        <td>
                            {foreach $row.group_highday_price as $index=>$vo}
                            {if $vo.type == 'all'}
                            整房价格: ¥{$vo.price}
                            {else/}
                            卧室{$vo.type}价格: ¥{$vo.price}
                            {/if}
                            {/foreach}
                        </td>
                    </tr>

                    <tr>
                        <td>拼房连住优惠</td>
                        <td>
                            {foreach $row.group_stay_discount as $index=>$vo}
                            {$vo.min_day}-{$vo.max_day}天 折扣{$vo.discount}
                            {/foreach}
                        </td>
                    </tr>

                    <tr>
                        <td>是否承接拼房</td>
                        <td>{$row.is_group==1?'是':'否'}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">配套服务</div>
            <div class="panel-body">
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th class="text-center">
                            <div class="th-inner">服务</div>
                        </th>

                    </tr>
                    </thead>
                    <tbody>
                    {volist name="complement" id="vo"}
                    <tr>
                        <td class="text-center">{$vo.name}{$vo.price}{$vo.unit}</td>
                    </tr>
                    {/volist}
                    </tbody>

                </table>

            </div>
        </div>
    </div>
</div>